import request from '@/utils/request'

// 项目课程相关的请求地址
enum API {
  ADMINGETALLSCHOOL_URL = '/admin/GetALLSchool',
  ADMINADDSCHOOL_URL = '/admin/addSchool',
  ADMINDELSCHOOL_URL = '/admin/delSchool',
}

// 获取全部课程
export const reqGetAllSchool = (data: any) =>
  request.post<any, any>(API.ADMINGETALLSCHOOL_URL, data)

// 增加课程
export const reqAddSchool = (data: any) =>
  request.post<any, any>(API.ADMINADDSCHOOL_URL, data)

// 删除课程
export const reqDeleSchool = (data: any) =>
  request.post<any, any>(API.ADMINDELSCHOOL_URL, data)
